# encoding: utf-8
""" 
@version: v1.0 
@author: autumner 
@license: Apache Licence  
@contact: 18322313385@163.com 
@site:  https://gitee.com/autumner/pythoncookbook
@software: PyCharm 
@file: gen_myqr.py 
@time: 2019/7/23 下午4:11
@note:
生成二维码
"""
import matplotlib.pyplot as plt
import matplotlib.image as mping
import numpy as np
from MyQR import myqr


myqr.run(words='https://www.baidu.com',
         picture='baidubg.png',
         colorized=True,
         save_name='baidu_code.png')
lena = mping.imread('baidu_code.png')
lena.shape
plt.imshow(lena)
plt.axis('off')
plt.show()